Crispo - Excel Challenge 10 2026

excel-challenges
weekly-exercises
Easy Sunday Excel Challenge
Published

March 8, 2026

Illustration for Crispo - Excel Challenge 10 2026

Challenge Description

Easy Sunday Excel Challenge

⭐ Week Days Multiply By: Results Weeks: 102 Days: 1 Weeks: 99 Days: 0

Solutions

library(tidyverse)
library(readxl)
library(lubridate)
library(glue)

path <- "2026-03-08/Challenge 106.xlsx"
input <- read_excel(path, range = "B2:D6")
test <- read_excel(path, range = "F2:F6")

result = input %>%
  rowwise() %>%
  mutate(
    Per = period(c(Week, Days) * `Multiply By:`, units = c("week", "day")) %>%
      as.duration() %>%
      as.numeric("days")
  ) %>%
  ungroup() %>%
  mutate(
    Results = glue("Weeks: {floor(Per/7)}   Days: {Per %% 7}") %>%
      as.character()
  )

all.equal(result$Results, test$Results)
# correct but number of spaces between "Weeks:" and "Days:" is different, so not exactly the same as test$Results
  • Logic:

    • Reads the workbook range needed for the challenge

    • Builds the intermediate helper columns that drive the final answer

  • Strengths:

    • The R solution stays compact and mirrors the workbook logic closely.
  • Areas for Improvement:

    • The code assumes the workbook layout and named ranges remain stable.
  • Gem:

    • The best part of the solution is choosing a tidy intermediate shape before producing the final answer.
import pandas as pd

path = "2026-03-08/Challenge 106.xlsx"
input_df = pd.read_excel(path, usecols="B:D", skiprows=1, nrows=4)
test = pd.read_excel(path, usecols="F", skiprows=1, nrows=4)

total_days = (input_df["Week"] * 7 + input_df["Days"]) * input_df["Multiply By:"]
input_df["Results"] = total_days.apply(
    lambda d: f"Weeks: {int(d // 7)}   Days: {int(d % 7)}"
)
# correct but number of spaces between "Weeks:" and "Days:" is different, so not exactly the same as test$Results
  • Logic:

    • Reads the workbook range needed for the challenge
  • Strengths:

    • The Python version keeps the same rule in a direct pandas-oriented workflow.
  • Areas for Improvement:

    • As with the R version, any workbook layout change would require small adjustments.
  • Gem:

    • The implementation stays close to the stated challenge instead of adding unnecessary complexity.

Difficulty Level

This task is easy to moderate:

  • The business rule is readable, but the workbook still needs a few careful transformation steps.